<!--[if !IE]>start pagination<![endif]-->
<div class="pagination">
<?php
echo '<span class="page_no">Página ' . $this->current . ' de '  . $this->pageCount .  '</span>';
echo '<ul class="pag_list">';
if(isset($this->previous)){
	echo '<li><a  class="button small_button pag_nav" href="' . $this->url(array('page' => $this->first)).  '"><span><span>&laquo;</span></span></a></li>';
} else {
	echo '<li><a href="#"  class="button small_button pag_nav"><span><span>&laquo;</span></span></a></li>';
}
if(isset($this->previous)) {
	echo '<li><a class="button small_button pag_nav" href="' . $this->url(array('page' => $this->previous)). '"><span><span>Anterior</span></span></a></li>';
}
foreach($this->pagesInRange as $page)
{ 
	if($this->current != $page){
		echo '<li><a href="'. $this->url(array('page' => $page)). '">' . $page . '</a></li>';
     }
	 else{
  		echo '<li><a href="#" class="current_page"><span><span>' . $page . '</span></span></a></li>';	
	}			
}
if(isset($this->next)) {
	echo '<li><a class="button small_button pag_nav" href="' . $this->url(array('page' => $this->next)). '"><span><span>Siguiente</span></span></a></li>';
}
if(isset($this->next)){
	echo '<li><a class="button small_button pag_nav" href="' . $this->url(array('page' => $this->last)). '"><span><span>&raquo;</span></span></a></li>';
} else {
 	echo '<li><a href="#"  class="button small_button pag_nav"><span><span>&raquo;</span></span></a></li>';
}
echo '</ul>';
?>
</div>
<!--[if !IE]>end pagination<![endif]-->

